package B1;

public class kettle {
    private boolean status;//状态，是否损坏
    private Integer temperature;//温度
    private boolean iswater;//是否有水
    private boolean isOn;//是否打开

    @Override
    public String toString() {
        return "水壶{" +
                "状态=" + status +
                ", 温度=" + temperature +
                ", 是否有水=" + iswater +
                ", 是否插电=" + isOn +
                '}';
    }

    public kettle() {
    }

    public kettle(boolean status, Integer temperature, boolean iswater, boolean isOn) {
        this.status = status;
        this.temperature = temperature;
        this.iswater = iswater;
        this.isOn = isOn;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public Integer temperature() {
        return temperature;
    }

    public void setTemperature(Integer temperature) {
        this.temperature = temperature;
    }

    public boolean isWater() {
        return iswater;
    }

    public void setIswater(boolean iswater) {
        this.iswater = iswater;
    }

    public boolean isOn() {
        return isOn;
    }

    public void setOn(boolean on) {
        isOn = on;
    }
}